home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / foomatic / db / source / driver / sipixa6.upp.xml < prev    next >
Encoding:
Text File  |  2009-03-27  |  2.2 KB  |  66 lines

  1. <driver id="driver/sipixa6.upp">
  2.  <name>sipixa6.upp</name>
  3.  <url>http://www.openprinting.org/download/printing/sipixa6.upp</url>
  4.  <execution>
  5.   <uniprint />
  6.   <prototype>psresize -w10.5cm -h14.8cm%E | gs @sipixa6.upp -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE %A%Z -sOutputFile=- - | ( cat -; echo -en '\r\n' ) </prototype>
  7.  </execution>
  8.  <comments>
  9.   <en>
  10.  
  11.    To install the driver, simply copy sipixa6.upp into one of the
  12.    directories listed in the "Search path" which you find in
  13.    the output of the command "<tt>gs
  14.    --help</tt>".<p>
  15.  
  16.    To set up the printer and print, proceed as follows:<p>
  17.  
  18.    First step is to set the proper serial port parameters:<p>
  19.  
  20.    <tt>stty -F /dev/ttyS1 115200 crtscts cs8 -cstopb
  21.    -parenb</tt><p>
  22.  
  23.    Your serial port may be <tt>/dev/ttyS0</tt>.<p>
  24.  
  25.    First you have to resize the postscript document down to
  26.    A6:<p>
  27.  
  28.    <tt>psresize -w10.5cm -h14.8cm -Pletter old.ps
  29.    new.ps</tt><p>
  30.  
  31.    Then send it through Ghostscript:<p>
  32.  
  33.    <tt>gs @sipixa6.upp -sPAPERSIZE=a6 -sOutputFile=new.bin
  34.    new.ps -c quit</tt><p>
  35.  
  36.    After that send the binary file to the printer:<p>
  37.  
  38.    </tt>cat new.bin > /dev/ttyS1</tt><p>
  39.  
  40.    Ghostscript does not always put a final cr/lf pair at the end of
  41.    the binary file, so make a 2 byte file with a cr/lf pair. Then
  42.    do:<p>
  43.  
  44.    <tt>cat new.bin fileend.bin > /dev/ttyS1</tt><p>
  45.  
  46.    If you use the PPD file provided here together with your printing
  47.    system, the pages are scaled automatically to fit the A6 paper and
  48.    the cr/lf is also added automatically.<p>
  49.  
  50.    As CUPS URI use:<p>
  51.  
  52.    <tt>serial:/dev/ttyS0?baud=115200+size=8+parity=none+stop=1+flow=rtscts</tt><p>
  53.  
  54.    Thanks to Mark Small (msmall at eastlink dot ca) for contributing
  55.    this driver. See also <a
  56.    href="http://lists.freestandards.org/pipermail/printing-user-general/2006/008607.html">his
  57.    posting in our forums</a>.<p>
  58.  
  59.   </en>.
  60.  </comments>
  61.  <printers>
  62.   <printer>
  63.    <id>printer/SiPix-Pocket_Printer_A6</id>
  64.   </printer>
  65.  </printers>
  66. </driver>